home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_487 / pprint / source / settings.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  53 lines

  1. /************************************************************************
  2. *                                                                                                *
  3. *        settings.h                                                                            *
  4. *                                                                                                *
  5. *-----------------------------------------------------------------------*
  6. *                                                                                                *
  7. *        Some definitions for printer settings.                                        *
  8. *                                                                                                *
  9. ************************************************************************/
  10.  
  11. #ifndef    SETTINGS_H
  12. #define    SETTINGS_H
  13.  
  14. #ifndef    EXEC_TYPES_H
  15. #include    <exec/types.h>
  16. #endif
  17.  
  18. struct Settings
  19. {
  20.     USHORT    LMarg;
  21.     USHORT    RMarg;
  22.     USHORT    Tabsize;
  23.     USHORT    PageLen;
  24.     USHORT    PageWidth;
  25.     SHORT        Style;
  26.     SHORT        Numb;
  27.     BOOL        Cond;
  28.     BOOL        LetterQ;
  29.     BOOL        LSpace6;
  30. };
  31.  
  32. #define    STYLE_ELITE            0
  33. #define    STYLE_PICA            1
  34. #define    STYLE_PROP            2
  35.  
  36.  
  37. #define    ELITE_ON                "\x1b[2w"
  38. #define    ELITE_OFF            "\x1b[1w"
  39. #define    CONDENSED_ON        "\x1b[4w"
  40. #define    CONDENSED_OFF        "\x1b[3w"
  41. #define    LETTERQ_ON            "\x1b[2\"z"
  42. #define    LETTERQ_OFF            "\x1b[1\"z"
  43. #define    PROPORTIONAL_ON    "\x1b[2p"
  44. #define    PROPORTIONAL_OFF    "\x1b[1p"
  45. #define    LINESP6_ON            "\x1b[1z"
  46. #define    LINESP6_OFF            "\x1b[0z"
  47.  
  48. #define    PINIT                    "\x1b[0m\x1b[0w\x1b[1v\x1b[1p\x1b[0q"
  49.  
  50. #define    DSETNAME                "PPrint.settings"
  51.  
  52. #endif    /*    SETTINGS_H */
  53.